<script type="text/javascript" src="./public/js/customer/customer.js?v=20160507"></script>
<script type="text/javascript" src="./public/js/customer/index.js?v=20160507"></script>
<div class="mar_bot">
    <input type="text" class="input mar_non" id="search" value="{$search}">
    <span class="ion-search search"></span>
</div>
<div class="mar_bot">
<table>
    <thead>
        <tr>
            {loop $thead $key $val}
            <td width={$val['width']}>{$val['name']}</td>
            {/loop}
        </tr>
    </thead>
    <tbody>
        {loop $customer_lists $key $val}
        <tr>
            <td>{$val['id']}</td>
            <td>{$val['name']}</td>
            <td>{$val['mobile']}</td>
            <td>{$val['address']}</td>
            <td>{$val['balance']}</td>
            <td>{$val['discount']}</td>
            <td>
                <span class="btn btn_suc" onclick="update({$val['id']})">修改</span>
                <span class="btn btn_danger" onclick="delConfirm({$val['id']})">删除</span>
            </td>
        </tr>
        {/loop}
    </tbody>
</table>
</div>
<input type="hidden" id="page_count" value="{$page_count}">
<div class="mar_bot" id="page">分页</div>